package com.future.hedongjun.mine.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.future.hedongjun.R;

import java.util.List;

/**
 * Created by jniu on 2017/8/10.
 */

public class SelectImageAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public SelectImageAdapter(@LayoutRes int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.addOnClickListener(R.id.iv_delete);
        Glide.with(mContext).load(item).into((ImageView) helper.getView(R.id.imageView));
    }
}
